package utils;

/**
 * Created by aceyin on 15/7/12.
 */
public class Nulls {
    public static void fixWithDefault(Object... objects) {
        if (objects == null) {
            return;
        }
        for (Object o : objects) {
            if (o != null) {
                continue;
            }
            if (o instanceof Number) {
                o = 0;
            } else if (o instanceof String) {
                o = "";
            } else {
                //TODO: support other type
            }
        }
    }
}
